import httpInstance from "@/utils/http";

/**
 * 登录接口
 * @param {*} data 登录参数
 * @returns 登录成功或失败
 */
export function userLoginApi(data){
  return httpInstance({
    url:'/login',
    method:'post',
    data
  })
}

// 个人中心 - 猜你喜欢数据接口
export const getLikeListAPI = ({ limit = 4 }) => {
  return httpInstance({
    url:'/goods/relevant',
    params: {
      limit
    }
  })
}